#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date    : 2017-12-22 11:42:18
# @Author  : yangxinpeng (yxpeng25877@gmail.com)
# @Link    : ${link}
# @Version : $Id$
import os

print('Process (%s) start...' % os.getpid())
# Only works on Unix/Linux/Mac:
pid = os.fork()
if pid == 0:
    print('I am child process (%s) and my parent is %s.' % (os.getpid(), os.getppid()))
else:
    print('I (%s) just created a child process (%s).' % (os.getpid(), pid))